﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Meterial_P_CenterSet.aspx.cs" Inherits="Hisun.View.Meterial.Meterial_P_CenterSet" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <style type="text/css">
        .style1
        {
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
     <div class =" CommonPage_MainPanel">
    <div class ="CommonPage_Banner"><div class = "CommomPage_Title">产品领料信息表</div></div>
    <div class ="CommonPage_Body">

    
        <table >
            <tr>
                <td class="style1" colspan="5">
                   
                </td>
            </tr>
            <tr>
                <td class="style1" colspan="5">
                    <asp:Label ID="Label17" runat="server" SkinID="Label" Text="选择数据来源："></asp:Label>
                    <asp:RadioButtonList ID="RadioButtonList_Query" runat="server" 
                        RepeatDirection="Horizontal" SkinID="RadioButtonList">
                        <asp:ListItem Value="0">材料调整</asp:ListItem>
                        <asp:ListItem Value="1">半成品领料</asp:ListItem>
                        <asp:ListItem Value="2">手工录入</asp:ListItem>
                        <asp:ListItem Value="3">手工录入(技术中心)</asp:ListItem>
                    </asp:RadioButtonList>

                </td>
            </tr>
            <tr>
                <td class="style1" colspan="5">
                    <asp:Label ID="Label13" runat="server" SkinID="Label" Text="产品ID："></asp:Label>
                    <asp:TextBox ID="TextBox_Query_ProductID" runat="server" SkinID="TextBox"></asp:TextBox>
                    <asp:Label ID="Label14" runat="server" Text="材料编码："></asp:Label>
                    <asp:TextBox ID="TextBox_Query_MeterialID" runat="server" SkinID="TextBox"></asp:TextBox>
                    <asp:Button SkinID = "Button" ID="Button_Query" runat="server" Text="查询" 
                        onclick="Button_Query_Click" />
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:LinkButton ID="LinkButton_First" runat="server" CommandArgument="First" OnClick="MyClick">&lt;&lt;</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="LinkButton_Prev" runat="server" CommandArgument="Prev" OnClick="MyClick"> &lt;</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="LinkButton_Next" runat="server" CommandArgument="Next" OnClick="MyClick">&gt;</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="LinkButton_Last" runat="server" CommandArgument="Last" OnClick="MyClick"> &gt;&gt;</asp:LinkButton>
                    <asp:Label ID="Label_Total" runat="server" Text="共：" SkinID="Label"></asp:Label>
                    <asp:Label ID="Label_CurrenPageAndTo" runat="server" Text="页，当前第 页，转到" 
                        SkinID="Label"></asp:Label>
                    <asp:TextBox ID="TextBox_PageIndex" runat="server" Width="26px"></asp:TextBox>
                    <asp:Label ID="Label4" runat="server" Text="页" SkinID="Label"></asp:Label>
                    <asp:RangeValidator ID="RangeValidator_PageIndex" runat="server" ControlToValidate="TextBox_PageIndex"
                        ErrorMessage="*" MaximumValue="10000" MinimumValue="1" Type="Integer"></asp:RangeValidator>
                    <asp:Button SkinID = "Button" ID="Button_PageGo" runat="server" CommandArgument="GotoPage" OnClick="MyClick"
                        Text="GO" /></td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="5">
                    <asp:GridView ID="GridView_Meterial_P" runat="server"   SkinID ="GridView"
                        AutoGenerateColumns="False">
                        <Columns>
                            <asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="True" 
                                SortExpression="ID" />
                            <asp:BoundField DataField="产品ID" HeaderText="产品ID" ReadOnly="True" 
                                SortExpression="产品ID" />
                            <asp:BoundField DataField="产品名称" HeaderText="产品名称" ReadOnly="True" 
                                SortExpression="产品名称" />
                            <asp:BoundField DataField="材料编码" HeaderText="材料编码" ReadOnly="True" 
                                SortExpression="材料编码" />
                            <asp:BoundField DataField="材料名称" HeaderText="材料名称" ReadOnly="True" 
                                SortExpression="材料名称" />
                            <asp:BoundField DataField="金额" HeaderText="金额" ReadOnly="True" 
                                SortExpression="金额" />
                            <asp:BoundField DataField="数量" HeaderText="数量" ReadOnly="True" 
                                SortExpression="数量" />
                            <asp:BoundField DataField="计量单位" HeaderText="计量单位" ReadOnly="True" 
                                SortExpression="计量单位" />
                            <asp:BoundField DataField="中间体" HeaderText="中间体" HtmlEncode="False" />
                            <asp:BoundField DataField="可用" HeaderText="可用" HtmlEncode="False" />
                            <asp:BoundField DataField="作业中心ID" HeaderText="作业中心ID" ReadOnly="True" 
                                SortExpression="作业中心ID" />
                            <asp:BoundField DataField="作业中心名称" HeaderText="作业中心名称" />
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:Button SkinID = "Button" ID="Button_Select" runat="server" 
                                        CommandArgument='<%# Eval("ID") %>' oncommand="Button_Select_Command" 
                                        Text="选择" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <asp:Label ID="Label_Sum" runat="server" SkinID="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:Panel ID="Panel_Main" runat="server" Visible="False">
                    
                    <table style="width:100%;">
                        <tr>
                            <td>
                                <asp:Label ID="Label5" runat="server" Text="产品ID" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_ID" runat="server" Enabled="False" SkinID="TextBox"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="Label6" runat="server" Text="产品名称" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_ProductName" runat="server" Enabled="False" SkinID="TextBox"></asp:TextBox>
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label7" runat="server" Text="材料ID" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_MeterialID" runat="server" Enabled="False" SkinID="TextBox"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="Label8" runat="server" Text="材料名称" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_MeterialName" runat="server" Enabled="False" SkinID="TextBox"></asp:TextBox>
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label9" runat="server" Text="金额" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_JinE" runat="server" SkinID="TextBox"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="Label12" runat="server" Text="数量" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_Shuliang" runat="server" SkinID="TextBox"></asp:TextBox>
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label10" runat="server" Text="计量单位" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox_Unit" runat="server" Enabled="False" SkinID="TextBox"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="Label11" runat="server" Text="作业中心" SkinID="Label"></asp:Label>
                            </td>
                            <td>
                                <asp:DropDownList ID="DropDownList_Center" runat="server" Height="16px" 
                                    Width="232px" SkinID="DropdownList">
                                </asp:DropDownList>
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Button SkinID = "Button" ID="Button_Save" runat="server" Text="保存" 
                                    onclick="Button_Save_Click" />
                                <asp:Button SkinID = "Button" ID="Button_Cancel" runat="server" onclick="Button_Cancel_Click" 
                                    Text="取消" />
                            </td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                    </asp:Panel>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:HiddenField ID="Current_ID" runat="server" Value="" /></td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">
                   <asp:HiddenField ID="CurrentPage" runat="server" Value="0" /></td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    
    </div></div>
    </form>
</body>
</html>
<% =alert %>